package com.tongcao.cn.daiyu;

import javax.servlet.ServletRequest;
import java.util.Map;

/**
 * @Author:tongcao
 * @Date:2019/1/11 15:06
 * Description:
 */
public abstract class Handler {

    public static final int SUCC = 1;

    public static final int FAIL = 0;

    /**
     * @param request
     * @param params
     * @param response
     * @return 1：表示处理成功，需要保存当前状态；其他值：表示处理失败
     */
    public abstract int process(ServletRequest request, Map<String, Object> params, Map<String, Object> response);
}
